#Docker image for springboot file run
# VERSION 3.0.6
# Author: app
# 基础镜像使用java
FROM openjdk:8
# 作者
MAINTAINER app <123456@qq.com>
# 修改时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
# VOLUME 指定了临时文件目录为/tmp。
# 其效果是在主机 /var/lib/docker 目录下创建了一个临时文件，并链接到容器的/tmp
VOLUME /tmp
# 将jar包添加到容器中并更名为kfxt-admin.jar
COPY ./kfxt-admin/target/kfxt-admin.jar /opt/kfxt-admin.jar
# 开放端口号
EXPOSE 8088
# 运行jar包
ENTRYPOINT ["java","-Dspring.profiles.active=nx_test", "-jar","/opt/kfxt-admin.jar",">","./opt/console.log", "2>&1", "&"]